import std.stdio;
import std.socket;
import core.thread;
import std.string;
import std.conv;

import core.thread;

import mysock;

int main(char[][] args)
{
    auto sock = new MySocket(`localhost`, 1000);
writefln(`socket created!`);
    sock.writeLine(`GET http://a.b.c/d?eee=2&bzbz=1 HTTP/1.0`);
    sock.writeLine(``);
writefln(`Request sent`);
    for(auto s = sock.readLine(); s != null; s = sock.readLine()) {
        writefln(`LINE===>[`~ s ~`]`);
    }
writefln(`Reading finished`);
    return 0;
}
